#include <iostream>
#include <absl/strings/str_replace.h>
#include <absl/time/time.h>
#include <absl/time/clock.h>

int main() {
    std::string input = "Hello, World!";
    std::string output = absl::StrReplaceAll(input, {{"World", "Abseil"}});
    std::cout << "input: " << input << "\n\n";
    std::cout << "World replace to Abseil" << "\n\n";
    std::cout << "output: " << output << "\n\n";

    auto start = absl::Now();
    absl::SleepFor(absl::Seconds(1));
    auto end = absl::Now();
    auto duration = end - start;

    std::cout << "start: " << start << "\n\n";
    std::cout << "end: " << end << "\n\n";
    std::cout << "duration: " << duration << "\n\n";

    return 0;
} 
